package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Auther Bennie
 * @Date 2020/6/3 14:16
 * @Description
 */
@Data
@TableName(value = "d_devices")
public class Device {
    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    @JSONField(name = "IpAddress")
    @TableField(value = "IpAddress")
    private String ipAddress;

    @JSONField(name = "MacAddress")
    @TableField(value = "MacAddress")
    private String macAddress;

    @JSONField(name = "DeviceId")
    @TableField(value = "DeviceId")
    private String deviceId;

    @JSONField(name = "DeviceName")
    @TableField(value = "DeviceName")
    private String deviceName;

    @JSONField(name = "DeviceType")
    @TableField(value = "DeviceType")
    private String deviceType;

    @JSONField(name = "LastDataTime")
    @TableField(value = "LastDataTime")
    private LocalDateTime lastDataTime;

    @JSONField(name = "Position")
    @TableField(value = "Position")
    private String position;

    @JSONField(name = "MallId")
    @TableField(value = "MallId")
    private String mallId;

    @JSONField(name = "SerialNumber")
    @TableField(value = "SerialNumber")
    private String serialNumber;


    @JSONField(name = "UpdateTime")
    @TableField(value = "UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 1 代表可用
     * -1 代表不可用
     */
    @JSONField(name = "Enabled")
    @TableField(value = "Enabled")
    private Integer enabled;

    @JSONField(name = "Ranked")
    @TableField(value = "Ranked")
    private Integer ranked;

    @JSONField(name = "WebUrl")
    @TableField(value = "WebUrl")
    private String webUrl;

}
